package com.onurokan.someone4me.photo.dao;

import java.util.Set;

import org.hibernate.exception.ConstraintViolationException;

import com.onurokan.someone4me.photo.domain.Photo;

public interface PhotoDao {
	void addPhoto(Photo photo) throws ConstraintViolationException;
	void savePhoto(Photo photo);
	Photo loadPhotoById(Long id);
	Set<Photo> loadPhotosByUserId(Long id);
	void remove(Photo photo);
}
